#define _CRT_SECURE_NO_WARNINGS 1
#include"Stack.h"


void test()
{
	Stack s;
	StackInit(&s);
	StackPush(&s, 1);
	printf("%d", StackTop(&s));
	StackPop(&s);
	StackPush(&s, 2);
	printf("%d", StackTop(&s));
	StackPop(&s);
	StackPush(&s, 3);
	printf("%d", StackTop(&s));
	StackPop(&s);
	StackPush(&s, 4);
	printf("%d", StackTop(&s));
	StackPop(&s);

	StackDestroy(&s);
}

int main() 
{
	test();
	return 0;
}